fillGradient
Type
property
Summary
Specifies the gradient to use to fill the graphic object.
Syntax
set the fillGradient [of graphic] to <propertiesArray>
Description
use the fillGradient property to set a gradient background on an object.
Parameters
Name | Type | Description |
---|---|---|
propertiesArray | array | The array keys containing the gradient property to set with the corresponding array value containing the value to set the property to. The properties array should contain one of more of the following key|value pairs:
|
Examples
set the fillGradient of graphic 1 to tPropertiesArray
set the fillGradient["type"] of graphic 1 to "linear"
-- Create the properties array and then set the fillGradient
put "linear" into tGradientProperties["type"]
put "0.00000,204,0,106" \
& return & "1.00000,0,156,157" into tGradientProperties["ramp"]
set the fillGradient of graphic 1 to tGradientProperties
-- Set the properties of the fillGradient individually
lock screen
set the fillGradient["type"] of graphic 1 to "linear"
set the fillGradient["ramp"] of graphic 1 \
to "0.00000,204,0,106" & return & "1.00000,0,156,157"
unlock screen
Related
property: opaque, antialiased
Compatibility and Support
Introduced
LiveCode 3.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile